package cmd

import (
	"devops-tools/server"
	"github.com/spf13/cobra"
)

var (
	portCmd = &cobra.Command{
		Use:   "port",
		Short: "端口监控 $ devops-tools port",
		Long: `监控端口-程序挂掉后可自动重启:

$ devops-tools port  --监控端口,自动重启

`,
		Run: func(cmd *cobra.Command, args []string) {
			server.PortMonitory()
		},
	}
)

func init() {
	rootCmd.AddCommand(portCmd)
}

